<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>添加菜单</title>


    
</head>
<body>
	<div class="row-fluid profile">
		<div class="span12">
			<!--BEGIN TABS-->
			<div class="tabbable tabbable-custom tabbable-full-width">
				<ul class="nav nav-tabs">
					<li><a href="${ctx}/menu/list">菜单列表</a></li>
					<li class="active"><a href="${ctx}/menu/form">添加菜单</a></li>
				</ul>
				<div class="tab-content">
					<!--end tab-pane-->
					<div class="tab-pane profile-classic row-fluid active" id="tab_1_2">
						<div class="span12">
							<!-- BEGIN SAMPLE FORM PORTLET-->
							<div class="portlet box blue">
								<div class="portlet-title">
									<div class="caption">
										<i class="icon-reorder"></i> <span class="hidden-480">添加菜单</span>
									</div>
								</div>
								<!-- END SAMPLE FORM PORTLET-->
								<div class="portlet-body form">
									<form class="form-horizontal" action="${ctx }/menu/save" id="form" method="post">
										<fieldset>
											<input id="" type="hidden" name="id" value="${menu.id }">
											<input type="hidden"  name="path" value="${menu.path }">
											<input type="hidden"  name="icon" value="${menu.icon }">
                                            <input type="hidden"  name="version" value="${menu.version }">
											<div class="control-group">

												<!-- Select Basic -->
												<label class="control-label">父级菜单</label>
												<div class="controls">
													<div class="input-append">
														<input class="m-wrap medium" value="${menu.parent.id }" name="parent.id" type="text">
														<a class="btn" data-toggle="modal" href="#select_modal1">
															<i class="icon-search"></i>
														</a>
													</div>
												</div>

											</div>
											<div class="control-group">

												<!-- Text input-->
												<label class="control-label" for="input01">名称</label>
												<div class="controls">
													<input type="text" placeholder="菜单名称" value="${menu.name }" name="name" class="m-wrap input-xlarge">
													<p class="help-block"></p>
												</div>
											</div>

											<div class="control-group">

												<!-- Text input-->
												<label class="control-label" for="input01">链接</label>
												<div class="controls">
													<input type="text" placeholder="菜单链接" name="url" value="${menu.url }" class="m-wrap input-xlarge">
													<p class="help-block"></p>
												</div>
											</div>

											<div class="control-group">
												<label class="control-label">图标</label>

												<!-- Button -->
												<div class="controls">
													<input type="hidden"  name="" value="">
													<button class="btn btn-info">选择</button>
												</div>
											</div>

											<div class="control-group">

												<!-- Text input-->
												<label class="control-label" for="input01">排序</label>
												<div class="controls">
													<input type="text" placeholder="排序值" value="${menu.sort}" name="sort" class="m-wrap input-xlarge">
													<p class="help-block">越小排序越靠前</p>
												</div>
											</div>

											<div class="control-group">
												<label class="control-label">可见性</label>
												<div class="controls">
													<!-- Inline Radios -->
													<label class="radio inline"> <input type="radio"
														value="1" name="isShow" checked="checked"> 可见
													</label> <label class="radio inline"> <input type="radio"
														value="0" name="isShow"> 不可见
													</label>
												</div>
											</div>

											<div class="control-group">

												<!-- Text input-->
												<label class="control-label" for="input01">权限标识</label>
												<div class="controls">
													<input type="text" name="permission" value="${menu.permission}" placeholder="权限标识，如sys:menu:view"
														class="m-wrap input-xlarge">
													<p class="help-block"></p>
												</div>
											</div>

											<div class="control-group">

												<!-- Textarea -->
												<label class="control-label">菜单描述</label>
												<div class="controls">
													<div class="textarea">
														<textarea name="description" class="m-wrap "
															style="margin: 0px; width: 269px; height: 37px;">${menu.description}</textarea>
													</div>
												</div>
											</div>



										</fieldset>
										<div class="form-actions">
											<button type="submit" class="btn blue">
												<i class="icon-ok"></i> 保存
											</button>
											<button type="button" class="btn" onclick="history.go(-1)">取消</button>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--END TABS-->
			</div>
		</div>
	</div>



</body>
</html>